﻿using System.ServiceModel;
using Common;

namespace CoreServiceLibrary
{
    [ServiceContract]
    public interface ICoreService
    {
        //[OperationContract]
        //Response Register(string login, string password, string firstName, string lastName, string phone);
        //[OperationContract]
        //Response Login(string login, string password);
        //[OperationContract]
        //Response Logout(string sessionID);
        //[OperationContract]
        //Response CreateRole(string RoleName);
        [OperationContract]
        Response SendMesssage(string sender, string reciever, string title, string text, string attachmentID);
        [OperationContract]
        Response GetRecievedMessages(string userID, int pageIndex, int pageSize);
        [OperationContract]
        Response GetSentMessages(string userID, int pageIndex, int pageSize);
        [OperationContract]
        Response GetMessageDetails(string messageID);
        [OperationContract]
        Response UploadFile(string fileName, string uploaderID, string contentType);
        [OperationContract]
        Response DownloadFile(string fileID);
    }
}